package com.sq.News.service;

import java.util.ArrayList;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.News.dao.UserMapper;
import com.sq.News.pojo.UserInfo;

@Service
public class UserServiceClass implements UserService {
	UserMapper userMapper;

	@Resource(name = "UserMapper")
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	@Override
	public ArrayList<UserInfo> getUsers() {
		return userMapper.getUsers();
	}

	@Override
	public UserInfo getUser(String name) {
		return userMapper.getUser(name);
	}

}
